//
//  LFFamousCollectionViewCell.m
//  QingDaoCommunity
//
//  Created by 李学林 on 15/11/25.
//  Copyright © 2015年 teteTechnology. All rights reserved.
//

#import "LFFamousCollectionViewCell.h"

@interface LFFamousCollectionViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *famousName;

@property (weak, nonatomic) IBOutlet UILabel *famousScore;

@property (weak, nonatomic) IBOutlet UILabel *famousIntro;

@property (weak, nonatomic) IBOutlet UIImageView *famousImage;

@end

@implementation LFFamousCollectionViewCell

- (void)awakeFromNib {

    
    
}

- (void)setFamous:(LFFamous *)famous{

    _famous = famous;
    
    self.famousName.text = famous.name;
    
    self.famousName.frame = CGRectMake(5, 10, 60, 15);
    
    self.famousScore.text = famous.score;
//
    self.famousScore.frame = CGRectMake(5, 30, 30, 8);
//
    self.famousIntro.text = famous.intro;
    self.famousIntro.frame = CGRectMake(5, 44, 60, 14);
    
    [self.famousImage sd_setImageWithURL:[NSURL URLWithString:famous.cover]];

}
@end
